<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let pro=new Promise(function(resolve,reject){
            setTimeout(resolve,2000);
        });
        let pro2=pro.then(function(){
            console.log(11);
            return new Promise(function(resolve,reject){
                setTimeout(resolve,3000);
            });
        });

        let pro3=pro2.then(function(){
            console.log(22);
            return new Promise(function(resolve,reject){
                setTimeout(resolve,4000);
            });
        });
       let pro4= pro3.then(function(){
            console.log(33);
            return new Promise(function(resolve,reject){
                setTimeout(resolve,2000);
            });
        });
        pro4.then(function(){
            console.log(44);
        });
    </script>
</head>
<body>
    
</body>
</html>